package com.dlyk.service;

import com.dlyk.model.TProduct;
import com.dlyk.query.ProductQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @description:
 * @author: ajie
 * @date: 2024/7/26 22:22:38
 * @version: 1.0
 */
public interface ProductService {
    List<TProduct> getAllOnSaleProduct();

    PageInfo<TProduct> getProductByPage(Integer current,ProductQuery productQuery);

    TProduct getProductById(Integer id);

    int saveProduct(ProductQuery productQuery);

    int updateProduct(ProductQuery productQuery);

    int delProductById(Integer id);

    int batchDelProductByIds(List<String> idList);
}
